<?php 
/* SVN FILE: $Id$ */
/* UserAgent Test cases generated on: 2010-01-01 10:02:41 : 1262340161*/
App::import('Model', 'UserAgent');

class UserAgentTestCase extends CakeTestCase {
	var $UserAgent = null;
	var $fixtures = array('app.user_agent');

	function startTest() {
		$this->UserAgent =& ClassRegistry::init('UserAgent');
	}

	function testUserAgentInstance() {
		$this->assertTrue(is_a($this->UserAgent, 'UserAgent'));
	}

	function testUserAgentFind() {
		$this->UserAgent->recursive = -1;
		$results = $this->UserAgent->find('first');
		$this->assertTrue(!empty($results));

		$expected = array('UserAgent' => array(
			'id'  => 1,
			'platform'  => 'Lorem ipsum dolor sit amet',
			'browser'  => 'Lorem ipsum dolor sit amet',
			'version'  => 'Lorem ipsum dolor sit amet',
			'parent'  => 'Lorem ipsum dolor sit amet',
			'cssversion'  => 'Lorem ipsum dolor sit amet',
			'created'  => '2010-01-01 10:02:41'
		));
		$this->assertEqual($results, $expected);
	}
}
?>